package com.jiufen.Mapper;

import com.jiufen.Pojo.Student;
import com.jiufen.Pojo.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {

    /**
     * 根据条件分页查询学生信息
     * @param studentQueryParam
     * @return
     */
    List<Student> queryStudentListByPage(StudentQueryParam studentQueryParam);

    void insertStudent(Student student);

    Student queryStudentById(Integer id);

    void updateStudent(Student student);

    Integer deleteStudentById(Integer[] ids);

    @MapKey("clazzName")
    List<Map<String, Object>> StudentCountData();
}
